#include "HD4478011Bits.h"
#include "HD44780AnalyzerSettings.h"


HD4478011Bits::HD4478011Bits(void)
{
}

HD4478011Bits::~HD4478011Bits(void)
{
}

void HD4478011Bits::SetDataLines( U8 Data )
{
    (*mData)[ mSettings->GetData0() ]->TransitionIfNeeded( Data & 0X01 ? BIT_HIGH : BIT_LOW );
    (*mData)[ mSettings->GetData1() ]->TransitionIfNeeded( Data & 0x02 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData2() ]->TransitionIfNeeded( Data & 0X04 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData3() ]->TransitionIfNeeded( Data & 0X08 ? BIT_HIGH : BIT_LOW );
    (*mData)[ mSettings->GetData4() ]->TransitionIfNeeded( Data & 0x10 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData5() ]->TransitionIfNeeded( Data & 0X20 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData6() ]->TransitionIfNeeded( Data & 0X40 ? BIT_HIGH : BIT_LOW  );
    (*mData)[ mSettings->GetData7() ]->TransitionIfNeeded( Data & 0X80 ? BIT_HIGH : BIT_LOW  );
}


